//
//  CommentDetailViewController.h
//  lvtu
//
//  Created by Apple on 12-6-28.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseViewController.h"
#import "NetDataSource.h"
#import "DataSource.h"
#import "MessageInfo.h"
#import "EGORefreshTableHeaderView.h"
#import "CommentDetailCell.h"

@protocol CommentDetailViewControllerProtocol <NSObject>

//图片点击处理代理方法
- (void)sendCommentSuccess;

@end

@interface CommentDetailViewController : BaseViewController<UITableViewDelegate,UITableViewDataSource,DataSourceDelegate,CommentDetailCellProtocol,UITextFieldDelegate>
{
    NSMutableArray* m_ShowAry;
    UITableView* m_tableView;
    
    UIAlertView* baseAlert;
    UILabel* nodataLabel;
    UIView* footSpinnerView;
    
    EGORefreshTableHeaderView *refreshHeaderView;
    BOOL _reloading;
    
    MessageInfo* msgInfo;
    NSInteger pageIndex;
    
    UIView* commentBackgroundView;
    UITextField* contentTextField;
    id<CommentDetailViewControllerProtocol> delegate;
}

@property (nonatomic,retain)MessageInfo* msgInfo;
@property (assign, getter = isReloading) BOOL reloading;
@property (nonatomic, readonly) EGORefreshTableHeaderView *refreshHeaderView;
@property (nonatomic, assign) id<CommentDetailViewControllerProtocol> delegate;

- (id)initWithMsgInfo:(MessageInfo*) info;
- (void)reloadTableViewDataSource;
- (void)dataSourceDidFinishLoadingNewData:(NSNumber *)loadedData;
- (void)dataSourceDidFailPresentingError;

@end
